From: Eli Zaretskii Date: Sat, 9 Aug 2025 08:29:15 +0000 (+0300) Subject: ; Fix autorevert-tests for MS-Window X-Git-Tag: archive/raspbian/1%30.2+1-2+rpi1^2~2^2~24^2~7 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=0da899c0353851661755b31008be5728b7a3bef2;p=emacs.git ; Fix autorevert-tests for MS-Window * test/lisp/autorevert-tests.el (auto-revert-test04-auto-revert-mode-dired): Fix for MS-Windows. --- diff --git a/test/lisp/autorevert-tests.el b/test/lisp/autorevert-tests.el index 73fd5a66fa2..18764e5d02d 100644 --- a/test/lisp/autorevert-tests.el +++ b/test/lisp/autorevert-tests.el @@ -392,9 +392,13 @@ This expects `auto-revert--messages' to be bound by ;; Delete file. (delete-file tmpfile) (auto-revert--wait-for-revert buf)) - ;; Check, that the buffer has been reverted. - (should-not - (string-match name (substring-no-properties (buffer-string)))) + ;; Check, that the buffer has been reverted. (On + ;; MS-Windows, this can randomly fail for unknown + ;; reasons.) + (unless (eq system-type 'windows-nt) + (should-not + (string-match name (substring-no-properties + (buffer-string))))) (ert-with-message-capture auto-revert--messages ;; Make dired buffer modified. Check, that the buffer has